#ifndef _LAST_EXECUTED_HPP
#define _LAST_EXECUTED_HPP 1

#include "MacArrayMessage.hpp"

namespace BFT
{
	namespace messages
	{
		class LastExecuted : public MacArrayMessage
		{
			public:
			
			LastExecuted(uint32_t _seq, uint32_t _sender);		
			
			LastExecuted(boost::shared_ptr<char> _bytes, int _bytes_size);
			
			uint32_t getSendingReplica(); //inlined
			
			uint32_t getSequenceNumber(); //inlined
			
			static uint32_t computeSize();
			
			void printInfo();
			
			protected:
			
			uint32_t seqNo;
		}; 
		
		inline uint32_t LastExecuted::getSendingReplica() {return getSender();}
		inline uint32_t LastExecuted::getSequenceNumber() {return seqNo;}
	}
}

#endif
